<!DOCTYPE html>
<html>
  <head>
    <?php if (!empty($vars['title'])) { ?>
      <title><?php echo $vars['title']; ?> - <?php echo lang('loobica'); ?> - <?php echo lang('next_gen_ads'); ?></title>
    <?php } else { ?>
      <title><?php echo lang('loobica'); ?> - <?php echo lang('next_gen_ads'); ?></title>
    <?php } ?>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php if (!empty($vars['description'])) { ?>
      <meta name="description" content="<?php echo $vars['description'] . ' - ' . $this->config->item('site_desc'); ?>">
    <?php } else { ?>
      <meta name="description" content="<?php echo $this->config->item('site_desc'); ?>">
    <?php } ?>
    <?php if (!empty($vars['keyword'])) { ?>
      <meta name="keywords" content="<?php echo $vars['keyword'] . ', ' . $this->config->item('site_keywords'); ?>">
    <?php } else { ?>
      <meta name="keywords" content="<?php echo $this->config->item('site_keywords'); ?>">
    <?php } ?>
    <link type="text/css" href="<?php echo site_url('assets/web/min/' . $this->config->item('asset_key') . '.css'); ?>" rel="stylesheet" media="screen"/>    
    <script type="text/javascript" src="<?php echo site_url('assets/web/min/' . $this->config->item('asset_key') . '.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo site_url('javascript/language'); ?>"></script>
    <script type="text/javascript">
      routeController();
    </script>
  </head>
  <body>
    <input type="hidden" name="site_url"  id="site_url" value="<?php echo site_url(); ?>" />
    <input type="hidden" name="redirect_url" id="redirect_url" value="<?php echo current_full_url(true); ?>"/>
    <div class="container wrapper">
      <div class="logo">
        <a href="<?php echo site_url(); ?>"><img src="<?php echo site_url('assets/web/img/loobica_logo.png'); ?>"></a>
      </div>
      <div class="row content clearfix" id="content">
        <?php $this->common_view->render_navbar($vars); ?>
        <?php $this->common_view->render_sidebar($vars); ?>
        <?php $this->load->view($view, $vars); ?>
      </div>
      <div class="footer">
        <div class="well well-sm">
          <div class="pull-left">
            <ul class="nav nav-pills">
              <li title="<?php echo lang('fan_page_facebook'); ?>">
                <a href="http://facebook.com/loobica" target="_blank">
                  <i class="fa fa-facebook-square fa-lg"></i>
                </a>
              </li>
              <li title="<?php echo lang('fan_page_twitter'); ?>">
                <a href="http://twitter.com/loobica" target="_blank">
                  <i class="fa fa-twitter-square fa-lg"></i>
                </a>
              </li>
              <li title="<?php echo lang('fan_page_google'); ?>">
                <a href="http://plus.google.com/loobica" target="_blank">
                  <i class="fa fa-google-plus-square fa-lg"></i>
                </a>
              </li>
            </ul>
          </div>
          <div class="pull-right">
            <ul class="nav nav-pills">
              <li><a class="route-controller" href="<?php echo site_url('help'); ?>"><?php echo lang('help'); ?></a></li>
              <li><a class="route-controller" href="<?php echo site_url('contact'); ?>"><?php echo lang('contact'); ?></a></li>
              <li><a class="route-controller" href="<?php echo site_url('terms_and_conditions'); ?>"><?php echo lang('terms_and_condtions'); ?></a></li>
            </ul>
          </div>
          <div class="clearfix">&nbsp;</div>
        </div>
        <div class="pull-right">
          <p class="text-muted"><small><?php echo lang('copyright_text'); ?></small></p>
        </div>
      </div>
    </div>
  </body>
</html>